Skip to content

feat: add live session signals#149

Merged
ccf merged 4 commits intomainfrom
feat/live-session-signals
Mar 26, 2026
Merged

feat: add live session signals#149
ccf merged 4 commits intomainfrom
feat/live-session-signals

Conversation

@ccf
Copy link
Copy Markdown
Owner

@ccf ccf commented Mar 26, 2026

Summary

  • add live local session signal analysis for friction, satisfaction, and abandonment risk
  • expose a new MCP tool for polling live session signals during an active session
  • mark the roadmap live-session-signals item shipped

Testing

  • PYTHONPATH=src pytest tests/test_live_session_signals.py tests/test_mcp_tools.py tests/test_mcp_server.py -q
  • ruff check src/primer/common/schemas.py src/primer/server/services/live_session_signal_service.py src/primer/mcp/tools.py src/primer/mcp/server.py tests/test_live_session_signals.py tests/test_mcp_tools.py tests/test_mcp_server.py
  • ruff format --check src/primer/common/schemas.py src/primer/server/services/live_session_signal_service.py src/primer/mcp/tools.py src/primer/mcp/server.py tests/test_live_session_signals.py tests/test_mcp_tools.py tests/test_mcp_server.py

Note

Medium Risk
Adds new local transcript analysis and surfaces it via an MCP tool; risk is mainly from new heuristic scoring/selection logic that could misclassify sessions or raise unexpected errors during polling.

Overview
Adds live, local session signal polling so the sidecar can summarize in-progress friction/satisfaction and an overall abandonment risk level without waiting for server ingest.

Introduces new Pydantic response models (LiveSessionSignal, LiveSessionSignalsResponse), a new local analysis service (get_live_session_signals) that selects a target session and derives signals from verification failures, tool-error clusters, recovery-loop detection, and recent user sentiment, and wires it into a new MCP tool live_session_signals with tests covering session selection and rendering behavior.

Written by Cursor Bugbot for commit 5b10d36. This will update automatically on new commits. Configure here.

Copy link
Copy Markdown

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

Bugbot Autofix is ON, but it could not run because the spend limit has been reached. To enable Bugbot Autofix, raise your spend limit in the Cursor dashboard.

@ccf ccf merged commit 31d60b1 into main Mar 26, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant